home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Documents / CERT / CA-90:06a.NeXT.vulnerability < prev    next >
Text File  |  1996-02-15  |  7KB  |  178 lines

  1. This message is an update of the October 2, 1990 CERT Advisory (CA-90:06).
  2. There is one correction and an update that you need to know about.
  3.  
  4. For Problem #2 SOLUTION, the following line has been added:
  5.  
  6.   # /etc/chmod 440 /usr/lib/NextPrinter/npd.old
  7.  
  8. This will disable the old printer program.  An updated copy of the CERT
  9. Advisory has been included with this message.
  10.  
  11. NeXT is also making the new printer program, npd, available electronically
  12. via anonymous ftp for Internet sites.  The archives sites are:
  13.  
  14.         nova.cc.purdue.edu
  15.         umd5.umd.edu
  16.         cs.orst.edu
  17.  
  18. In addition, NeXT has asked the CERT to announce that if anyone cannot get
  19. it from the archives, NeXT Technical Support can provide it. Requests should
  20. go to:
  21.  
  22.         ask_next@NeXT.COM [...!next!ask_next]
  23.  
  24. Thanks,
  25. Computer Emergency Response Team
  26.  
  27. ------------------------------------------------------------------------------
  28. CA-90:06a                      CERT Advisory
  29.                   October 3, 1990
  30.                           NeXT's System Software
  31.  
  32. -----------------------------------------------------------------------------
  33. This message is to alert administrators of NeXT Computers of four
  34. potentially serious security problems.
  35.  
  36. The information contained in this message has been provided by David Besemer,
  37. NeXT Computer, Inc.  The following describes the four security problems,
  38. NeXT's recommended solutions and the known system impact.
  39.  
  40. ------------------------------------------------------------------------------
  41.  
  42.   Problem #1 DESCRIPTION:  On Release 1.0 and 1.0a a script exists in
  43.   /usr/etc/restore0.9 that is a setuid shell script.  The existence of  
  44.   this script is a potential security problem.
  45.  
  46.   Problem #1 IMPACT:  The script is only needed during the installation
  47.   process and isn't needed for normal usage.  It is possible for any
  48.   logged in user to gain root access.
  49.  
  50.   Problem #1 SOLUTION:  NeXT owners running Release 1.0 or 1.0a should  
  51.   remove /usr/etc/restore0.9 from all disks.  This file is installed by  
  52.   the "BuildDisk" application, so it should be removed from all systems  
  53.   built with the standard release disk, as well as from the standard  
  54.   release disk itself (which will prevent the file from being installed  
  55.   on system built with the standard release disk in the future).  You  
  56.   must be root to remove this script, and the command that will remove  
  57.   the script is the following:
  58.  
  59.   # /bin/rm /usr/etc/restore0.9
  60.  
  61.                                     ---
  62.  
  63.   Problem #2 DESCRIPTION:  On NeXT computers running Release 1.0 or
  64.   1.0a that also have publicly accessible printers, users can gain
  65.   extra permissions via a combination of bugs.
  66.   
  67.   Problem #2 IMPACT:  Computer intruders are able to exploit this security
  68.   problem to gain access to the system.  Intruders, local users and remote
  69.   users are able to gain root access.
  70.  
  71.   Problem #2 SOLUTION:  NeXT computer owners running Release 1.0 or  
  72.   1.0a should do two things to fix a potential security problem.   
  73.   First, the binary /usr/lib/NextPrinter/npd must be replaced with a  
  74.   more secure version.  This more secure version of npd is available  
  75.   through your NeXT support center.  Upon receiving a copy of the more  
  76.   secure npd, you must become root and install it in place of the old  
  77.   one in /usr/lib/NextPrinter/npd.  The new npd binary needs to be  
  78.   installed with the same permission bits (6755) and owner (root) as  
  79.   the old npd binary.  The commands to install the new npd binary are  
  80.   the following:
  81.   
  82.   # /bin/mv /usr/lib/NextPrinter/npd /usr/lib/NextPrinter/npd.old
  83.   # /bin/mv newnpd /usr/lib/NextPrinter/npd
  84.       (In the above command, "newnpd" is the npd binary
  85.       that you obtained from your NeXT support center.)
  86.   # /etc/chown root /usr/lib/NextPrinter/npd
  87.   # /etc/chmod 6755 /usr/lib/NextPrinter/npd
  88.   # /etc/chmod 440 /usr/lib/NextPrinter/npd.old
  89.   
  90.   The second half of the fix to this potential problem is to change the  
  91.   permissions of directories on the system that are currently owned and  
  92.   able to be written by group "wheel".  The command that will remove  
  93.   write permission for directories owned and writable by group "wheel"  
  94.   is below.  This command is all one line, and should be run as root.
  95.   
  96.   # find / -group wheel ! -type l -perm -20 ! -perm -2 -ls -exec chmod  
  97.   g-w {} \; -o -fstype nfs -prune
  98.  
  99.                                     ---
  100.  
  101.   Problem #3 DESCRIPTION:  On NeXT computers running any release of the
  102.   system software,  public access to the window server may be a
  103.   potential security problem.
  104.  
  105.   The default in Release 1.0 or 1.0a is correctly set so that public access
  106.   to the window server is not available.  It is possible, when upgrading from
  107.   a prior release, that the old configuration files will be reused.  These
  108.   old configuration files could possibly enable public access to the window
  109.   server.
  110.  
  111.   Problem #3 IMPACT:  This security problem will enable an intruder to gain
  112.   access to the system.
  113.  
  114.   Problem #3 SOLUTION:  If public access isn't needed, it should be disabled.
  115.  
  116.   1. Launch the Preferences application, which is located in /NextApps
  117.   2. Select the UNIX panel by pressing the button with the UNIX
  118.      certificate on it.
  119.   3. If the box next to Public Window Server contains a check, click on
  120.      the box to remove the check.
  121.  
  122.                                     ---
  123.  
  124.   Problem #4 DESCRIPTION: On NeXT computers running any release of the
  125.   system software, the "BuildDisk" application is executable by all users.
  126.  
  127.   Problem #4 IMPACT:  Allows a user to gain root access.
  128.  
  129.   Problem #4 SOLUTION: Change the permissions on the "BuildDisk" application
  130.   allowing only root to execute it.  This can be accomplished with the
  131.   command:
  132.  
  133.   # chmod 4700 /NextApps/BuildDisk
  134.  
  135.   To remove "BuildDisk" from the default icon dock for new users, do the
  136.   following:
  137.  
  138.   1. Create a new user account using the UserManager application.
  139.   2. Log into the machine as that new user.
  140.   3. Remove the BuildDisk application from the Application Dock by dragging
  141.      it out.
  142.   4. Log out of the new account and log back in as root.
  143.   5. Copy the file in ~newuser/.NeXT/.dock to /usr/template/user/.NeXT/.dock
  144.     (where ~newuser is the home directory of the new user account)
  145.   6. Set the protections appropriately using the following command:
  146.         # chmod 555 /usr/template/user/.NeXT/.dock
  147.   7. If you wish, with UserManager, remove the user account that you created
  148.      in step 1.
  149.  
  150.   In release 2.0, the BuildDisk application will prompt for the root password
  151.   if it is run by a normal user.
  152.  
  153. -----------------------------------------------------------------------------
  154. CONTACT INFORMATION
  155.  
  156. For further questions, please contact your NeXT support center.
  157.  
  158. NeXT has also reported that these potential problems have been fixed in
  159. NeXT's Release 2.0, which will be available in November, 1990.
  160.  
  161. Thanks to Corey Satten and Scott Dickson for discovering, documenting, and
  162. helping resolve these problems.
  163.  
  164. -----------------------------------------------------------------------------
  165. Computer Emergency Response Team/Coordination Center (CERT/CC)
  166. Software Engineering Institute
  167. Carnegie Mellon University
  168. Pittsburgh, PA 15213-3890
  169.  
  170. Internet E-mail: cert@cert.org
  171. Telephone: 412-268-7090 24-hour hotline: CERT personnel answer
  172.            7:30a.m.-6:00p.m. EST, on call for
  173.            emergencies other hours.
  174.  
  175. Past advisories and other information are available for anonymous ftp
  176. from cert.org (192.88.209.5).
  177.  
  178.